import request from '@/utils/request'

// 查询工单详情列表
export function listTaskDeatils(query) {
  return request({
    url: '/manage/taskDeatils/list',
    method: 'get',
    params: query
  })
}

// 查询工单详情详细
export function getTaskDeatils(detailsId) {
  return request({
    url: '/manage/taskDeatils/' + detailsId,
    method: 'get'
  })
}

// 新增工单详情
export function addTaskDeatils(data) {
  return request({
    url: '/manage/taskDeatils',
    method: 'post',
    data: data
  })
}

// 修改工单详情
export function updateTaskDeatils(data) {
  return request({
    url: '/manage/taskDeatils',
    method: 'put',
    data: data
  })
}

// 删除工单详情
export function delTaskDeatils(detailsId) {
  return request({
    url: '/manage/taskDeatils/' + detailsId,
    method: 'delete'
  })
}
